{extend name="public:_base" /}
{block name="main"}
<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
        <a class="btn radius btn-primary" onclick="edit('添加栏目','{:url('ProductNav/add')}')" href="javascript:;">
        <i class="Hui-iconfont">&#xe600;</i> 添加栏目</a>
        </span>


        </span> <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>

    <div class="mt-10">
        <table class="layui-table">
            <thead>
            <tr class="text-c">
                <th width="5"><input name="" type="checkbox" value=""></th>
                <th width="300">名称</th>
                <th width="5">状态</th>
                <th width="5">排序</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo" empty="$_html_empty"}
            <tr class="text-c va-m">
                <td><input name="id[]" type="checkbox" value="{$vo.id}"></td>
                <td class="text-l">
                   {$vo.name}
                </td>
                <td>
                    {$vo.status|status=$vo.id}
                </td>
                <td>
                    {$vo.sort|sortby=$vo.id}
                </td>
                <td class="td-manage">

                    <a style="text-decoration:none" class="btn radius btn-xs btn-warning"
                       onClick="edit('{$vo.name}编辑','{:url(\''.\\think\\Request::instance()->controller().'/edit',['id'=>$vo.id])}','10001')" href="javascript:;"
                       title="编辑">编辑</a>
                    <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger"-->
                       <!--onClick="del_old(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}','10001')" href="javascript:;"-->
                       <!--title="删除">删除</a>-->
                    <a style="text-decoration:none" class="btn radius btn-xs btn-danger"
                       onClick="del('{:url(\''.\\think\\Request::instance()->controller().'/del')}',{$vo.id})"
                       href="javascript:;"
                       title="删除">删除</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
    </div>
</div>
</div>

{/block}